/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "质检明细表",TableName = "Quality_TestDetail",DBServer = "SysDbContext")]
    public partial class Quality_TestDetail:SysEntity
    {
        /// <summary>
       ///质检数量
       /// </summary>
       [Display(Name ="质检数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? TestDetailNum { get; set; }

       /// <summary>
       ///合格数量
       /// </summary>
       [Display(Name ="合格数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? TestDetailNumOK { get; set; }

       /// <summary>
       ///不合格数量
       /// </summary>
       [Display(Name ="不合格数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? TestDetailNumNo { get; set; }

       /// <summary>
       ///质检人
       /// </summary>
       [Display(Name ="质检人")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Qualityinspector { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Detailedremarks { get; set; }

       /// <summary>
       ///质检结果
       /// </summary>
       [Display(Name ="质检结果")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string TestDetailResult { get; set; }

       /// <summary>
       ///质检明细主键Id
       /// </summary>
       [Key]
       [Display(Name ="质检明细主键Id")]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid QualityTestDetailId { get; set; }

       /// <summary>
       ///原料质检Id
       /// </summary>
       [Display(Name ="原料质检Id")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? QualityTestMaterialId { get; set; }

       /// <summary>
       ///过程质检Id
       /// </summary>
       [Display(Name ="过程质检Id")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? QualityTestProcesslId { get; set; }

       
    }
}